import request from "@/utils/request";

/// <summary>
/// 查询Vip
/// </summary>
/// <returns></returns>
export const getVip = async (): Promise<any> => {
  return request({
    url: "/Vips/GetVip",
    method: "get",
  });
};

/// <summary>
/// 创建vip订单表
/// </summary>
/// <returns></returns>
export const AddordersAsync = async (obj: any): Promise<any> => {
  return request({
    url: "/OfflineOrders/Addorders",
    method: "post",
    data: obj,
  });
};

/// <summary>
/// PC获取所有vip用户
/// </summary>
/// <returns></returns>
export const Getemploy_Vip = async (obj: any): Promise<any> => {
  return request({
    url: "/Vips/Getemploy_Vip",
    method: "get",
    params: obj,
  });
};

/// <summary>
/// PC单个获取vip用户详细
/// </summary>
/// <returns></returns>
export const Get_Vip_off = async (obj: any): Promise<any> => {
  return request({
    url: "/Vips/Get_Vip_off",
    method: "get",
    params: obj,
  });
};

/// <summary>
/// 查询创建VIP订单
/// </summary>
/// <returns></returns>
export const Get_Vip_offtrrezw = async (obj: any): Promise<any> => {
  return request({
    url: "/Vips/Get_Vip_offtrrezw",
    method: "get",
    params: obj,
  });
};
